<?php
/**
 ***** 扶摇而上、抱守本真 ******
 * @author Dana
 * @Date 2021/6/21
 */

class Person{

    public $name;
    public $email;

    public function setName($name)
    {
        $this->name = $name;
    }

    public function setEmail($email)
    {
        $this->email = $email;
    }

    public function __toString()
    {
        return "$this->name <$this->email>";
        //return new Person();
    }
}

$dana = new Person();
$dana->setName('dana');
$dana->setEmail('dana@gmail.com');
print $dana;
